package threads;

import model.College;
import model.Teacher;
import model.Users;

public class LoadingDataUsers implements Runnable {

	private Thread t;

	@Override
	public void run() {

		while (t == Thread.currentThread()) {

			System.out.println("start loading users");
			Users.getInstance();
			System.out.println("end loading users");
		}

	}

	public void start() {
		if (t == null) {
			t = new Thread(this);
			t.start();
		}
	}

	public void stop() {
		if (t != null)
			t = null;
	}

}
